using System;
using UnityEngine;

public class TestRoomsLayer : MonoBehaviour
{
	public UITable table;

	public GameObject buttonPrefab;

	private void Start()
	{
		int num = 0;
		foreach (object value in Enum.GetValues(typeof(RoomLook)))
		{
			GameObject gameObject = NGUITools.AddChild(table.gameObject, buttonPrefab);
			gameObject.name = num.ToString();
			TestRoomsButton component = gameObject.GetComponent<TestRoomsButton>();
			component.Init((RoomLook)value);
			num++;
		}
		table.Reposition();
	}
}
